:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 全局共享样式 */

/* 确保输入框在聚焦时有良好的视觉反馈 */
input:focus {
  border-color: #3b82f6;
  border-width: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

/* 按钮的交互效果增强 */
button {
  transition: all 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 折叠内容的过渡动画 */
.fixed-content-enter-active,
.fixed-content-leave-active {
  transition: all 0.3s ease;
}

.fixed-content-enter-from,
.fixed-content-leave-to {
  opacity: 0;
  max-height: 0;
}

/* 表单容器样式 */
.form-container {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用区块样式 */
.section-block {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid;
}

.section-block.blue {
  background-color: #eff6ff;
  border-color: #dbeafe;
}

.section-block.green {
  background-color: #f0fdf4;
  border-color: #dcfce7;
}

.section-block.purple {
  background-color: #f5f3ff;
  border-color: #e9d5ff;
}

/* 标签样式 */
.section-label {
  margin-right: 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section-label.blue {
  color: #1e40af;
}

.section-label.green {
  color: #15803d;
}

.section-label.purple {
  color: #6b21a8;
}

.section-label.red {
  color: #dc2626;
}
